<div class="task_right_detail_inner">
    {{if myLastApproval}}
        <div class="approval_reject">
            <span>{{myLastApproval.approvalTime}}</span>
            <span>
                {{'APPROVAL_I' | i18n}}{{if myLastApproval.result == 1}}{{'APPROVAL_AGREE' | i18n}}{{/if}}{{if myLastApproval.result == 0}}{{'APPROVAL_REJECT' | i18n}}{{/if}}{{'APPROVAL_2' | i18n}}
            </span>
        </div>
    {{/if}}
    <div class="task_detail_head approval_detail_head clear">

        <div class="task_name task_info_no_edit daily_name">{{apply.applyTitle}}<span>【{{apply.applyOddNumber}}】</span></div>
        <div class="task_description task_info_no_edit daily_description">
            <span class="task_list_noneinfo">
                {{'APPROVAL_APPLY_USER' | i18n}}：<span>{{users[apply.createdBy].name}}</span>
                <span class="approval-name">{{apply.flowName}}</span>
            </span>
            {{if (apply.status == 2 && apply.createdBy == currentUserId)||(apply.status == 1 && !apply.taskid)||apply.canDelete == 1}}
            <span class="mark_read approval_mark_read_delete"><a id="deleteApply" class="delete approval_delete" href="javascript:void (0);" title="{{'APPROVAL_BE_DELETE' | i18n}}"></a></span>
            {{/if}}
        </div>
        <div class="mark_read mark_tool">
            {{if apply.cancelFlg == 0 && apply.status == 1 && apply.createdBy == currentUserId && apply.canCancel == 1}}
                <a id="cancelBtn" class="pg-btn-gray" href="javascript:void(0);">{{'APPROVAL_CANCEL' | i18n}}</a>
            {{/if}}
            {{if apply.status == 2 && apply.createdBy == currentUserId}}
                <a id="showApplyUpdate" class="gray_submit_button" href="javascript:void(0);">{{'APPROVAL_UPDATE_TO_SUBMIT' | i18n}}</a>
            {{/if}}
            {{if templatePrints && templatePrints.length > 0}}
                {{if templatePrints.length > 1}}
                    <div class="print-box-wapper border-radius0 dinline-block lfloat" act="template_print_select">
                            <span class="ico lfloat dinline-block"> <i class="dinline-block"></i>
                            </span>
                        <input type="text" class="print-text lfloat" value="{{'CRM_TEMPLATE_PRINT' | i18n}}">
                            <span class="arrow lfloat dinline-block"> <i class="dinline-block"></i>
                            </span>
        </div>
                    <div class="drop_div print-box-drop-div pabsolute" act="template_print_select_option">
                        <ul class="drop_menu">
                            {{each templatePrints as templatePrint i}}
                            <li>
                                <a href="/json/crm_template_print/print.action?templatePrintId={{templatePrint.id}}&systemItemId={{apply.applyId}}" act="template_print_select_option_a">{{templatePrint.name}}</a>
                            </li>
                            {{/each}}
                        </ul>
                    </div>
                {{else}}
                    <div class="print-box-wapper border-radius0 dinline-block lfloat" act="template_print_select_one" href="/json/crm_template_print/print.action?templatePrintId={{templatePrints[0].id}}&systemItemId={{apply.applyId}}">
                                    <span class="ico lfloat dinline-block"> <i class="dinline-block"></i>
                                    </span>
                        <input type="text" class="print-text lfloat" value="{{'CRM_TEMPLATE_PRINT' | i18n}}">
                    </div>
                {{/if}}
            {{/if}}

        </div>
        {{if apply.cancelFlg == 1}}
            <div class="recall_approval">
                <span>
                    <span>{{apply.updatedAt}} {{'APPROVAL_BE_CANCEL' | i18n}}</span>
                    <a _id="approval_process_list" href="javascript:void(0);" class="check_process">{{'APPROVAL_VIEW_PROCESS' | i18n}}</a>
                </span>
        {{else if apply.cancelFlg == 0 && apply.status == 1}}
            <div class="wait_approval">
                <span>{{'APPROVAL_WAIT' | i18n}}
                {{if apply.signApprovals.length > 0}}
                    {{each apply.signApprovals as approval i}}
                        {{if i < apply.signApprovals.length-1}}
                        <a href="/final/user.action?uid={{approval.id}}" target="_blank">{{users[approval.id].name}}</a>,
                        {{else}}
                        <a href="/final/user.action?uid={{approval.id}}" target="_blank">{{users[approval.id].name}}</a>
                        {{/if}}
                    {{/each}}
                    {{'APPROVAL_COUNTERSIGN' | i18n}}</span>
                {{else}}
                <a href="/final/user.action?uid={{users[apply.currentApproval].id}}" target="_blank">{{users[apply.currentApproval].name}}</a>
                 {{'APPROVAL' | i18n}}</span>
                {{/if}}
                <a _id="approval_process_list" href="javascript:void(0);" class="check_process">{{'APPROVAL_VIEW_PROCESS' | i18n}}</a>
        {{else if apply.cancelFlg == 0 && apply.status == 3}}
            <div class="pass_approval">
            <span>
                <span>{{apply.updatedAt}} {{'APPROVAL_PASS' | i18n}}{{'APPROVAL' | i18n}}</span>
            </span>
                <a _id="approval_process_list" href="javascript:void(0);" class="check_process">{{'APPROVAL_VIEW_PROCESS' | i18n}}</a>
        {{else if apply.cancelFlg == 0 && apply.status == 2}}
            <div class="recall_approval">
            <span>
                <span>{{apply.updatedAt}} {{'APPROVAL_BE' | i18n}}
                {{if apply.signApprovals.length > 0}}
                    {{each apply.signApprovals as approval i}}
                        {{if i < apply.signApprovals.length-1}}
                        <a href="/final/user.action?uid={{approval.id}}" target="_blank">{{users[approval.id].name}}</a>,
                        {{else}}
                        <a href="/final/user.action?uid={{approval.id}}" target="_blank">{{users[approval.id].name}}</a>
                        {{/if}}
                    {{/each}}
                    {{'APPROVAL_COUNTERSIGN_TOGETHER' | i18n}}
                {{else}}
                <a href="/final/user.action?uid={{users[apply.currentApproval].id}}" target="_blank">{{users[apply.currentApproval].name}}</a>
                {{/if}}
                 {{'APPROVAL_REJECT' | i18n}}</span>
            </span>
                <a _id="approval_process_list" href="javascript:void(0);" class="check_process">{{'APPROVAL_VIEW_PROCESS' | i18n}}</a>
                {{if apply.signApprovals.length > 0}}
                {{each apply.signApprovals as approval i}}
                {{if approval.result == 0 }}
                <p class="reject">
                    <span>{{users[approval.id].name}} </span>
                    <span class="red-font">{{'APPROVAL_REJECT_REASON' | i18n}}: </span>
                    <span>{{approval.opinion}}</span>
                </p>
                {{/if}}
                {{/each}}
                {{else}}
                <p class="reject">
                    <span>{{'APPROVAL_REJECT_REASON' | i18n}}：</span>
                    <span>{{apply.opinion}}</span>
                </p>
        {{/if}}
        {{/if}}
        <!-- 审批流程-->
        <div style="display:none;" _id="approval_process_list" class="approval_wrap">
            <div class="drop_div approval_process_list">
                <div class="approval_list_inner">
                    <ul class="approval_ul">
                        {{each processList.approvals as approval i}}
                            {{if processList.approvals.length == i + 1 }}
                                <li class="last_li">
                            {{else}}
                                <li>
                            {{/if}}
                            {{if approval.signApprovals.length > 0}}
                            <div class="submit_time">
                                {{if approval.operateType == 6 || approval.operateType == 7}}
                                <span class="passed_approval"></span>
                                {{else if approval.operateType == 4 || approval.operateType == 5}}
                                    <span class="reject_approval"></span>
                                {{else}}
                                    <span class="awaiting_approval"></span>
                                {{/if}}
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{if approval.operateType}}
                                        {{approval.signApprovals[approval.signApprovals.length - 1].approvalTime}}
                                    {{else}}
                                        {{'APPROVAL_RESULT_WAIT_2' | i18n}}
                                    {{/if}}
                                    </span>
                            </div>
                                <div class="submit_peopel_img">
                                {{each approval.signApprovals as signApproval i}}
                                    <a target="_blank" href="/final/user.action?uid={{users[signApproval.id].id}}">
                                    <img src="{{users[signApproval.id].icon}}"/>
                                </a>
                                {{/each}}
                            </div>
                                <div class="submit_peopel">
                                <span class="dblock approval_sing">
                                {{if approval.operateType}}
                                    <span class="dbline-block">{{approval.signApprovals.length}}{{'APPROVAL_PEOPLE_ONLY' | i18n}}{{'APPROVAL_COUNTERSIGN' | i18n}}</span>
                                    {{if approval.operateType == 6}}
                                    <span class="green-font"> {{'APPROVAL_AGREE' | i18n}}</span><span> {{'APPROVAL_THE_APPROVAL' | i18n}}</span>
                                    {{else if approval.operateType == 4}}
                                    <span class="red-font"> {{'APPROVAL_REJECT' | i18n}}</span><span> {{'APPROVAL_THE_APPROVAL' | i18n}}</span>
                                    {{else if approval.operateType == 5}}
                                    <span class="red-font"> {{'APPROVAL_BE' | i18n}}{{'APPROVAL_CANCEL' | i18n}}</span>
                                    {{else if approval.operateType == 7}}
                                    <span class="green-font"> {{'APPROVAL_OPERATE_PASS' | i18n}}</span>
                                    {{/if}}
                            {{else}}
                                    <span class="dbline-block">{{approval.signApprovals.length}}{{'APPROVAL_PEOPLE_ONLY' | i18n}}{{'APPROVAL_SIGN' | i18n}}</span>
                            {{/if}}
                                </span>
                                {{each approval.signApprovals as signApproval i}}
                                <span class="dblock approval_people_opinion"><a href="/final/user.action?uid={{users[signApproval.id].id}}" target="_blank" ucard="uid={{users[signApproval.id].id}}">{{users[signApproval.id].name}}:</a>
                                {{if signApproval.result == 1}}
                                <span class="green-font"> {{'APPROVAL_AGREE' | i18n}}</span>
                                <span class="time rfloat">{{signApproval.approvalTime}}</span>
                                {{else if signApproval.result == 0}}
                                <span class="red-font"> {{'APPROVAL_REJECT' | i18n}}</span>
                                <span class="time rfloat">{{signApproval.approvalTime}}</span>
                                {{else if signApproval.result == -1}}
                                <span class="yellow-font"> {{'APPROVAL_RESULT_WAIT_2' | i18n}}</span>
                                {{else if signApproval.result == 5}}
                                <span class="red-font"> {{'APPROVAL_BE' | i18n}}{{'APPROVAL_CANCEL' | i18n}}</span>
                                <span class="time rfloat">{{signApproval.approvalTime}}</span>
                                {{/if}}
                                </span>
                                {{if signApproval.opinion}}
                                <div class="approval_people_wrap">
                                    <div class="approval_people_toparrow">
                                        <div class="approval_people_toparrowinner"></div>
                                    </div>
                                    <div class="approval_people_content">{{signApproval.opinion}}</div>
                                </div>
                                {{/if}}
                                {{/each}}
                                </div>
                                </li>
                            {{else if approval.result == -1}}
                                <div class="submit_time">
                                    <span class="awaiting_approval"></span>
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{'APPROVAL_RESULT_WAIT_2' | i18n}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span class="yellow-font"> {{'APPROVAL_RESULT_WAIT_2' | i18n}}</span>
                                </div>
                                </li>
                            {{else if approval.result == 3 && approval.operateType==1}}
                                <div class="submit_time">
                                    <span class="passed_approval"></span>
                                    <span class="passed_time">
                                    <span class="passed_person">{{'SUBMIT' | i18n}}</span>
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                <span class="dblock approval_people_opinion">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span> {{'APPROVAL_OPERATE_SUBMIT' | i18n}}</span>
                                    {{if approval.opinion}}
                                <div class="approval_people_wrap">
                                    <div class="approval_people_toparrow">
                                        <div class="approval_people_toparrowinner"></div>
                                    </div>
                                    <div class="approval_people_content">{{approval.opinion}}</div>
                                </div>
                                {{/if}}
                                    </span>
                                </div>
                                </li>
                            {{else if approval.result == 1 && approval.operateType==6}}
                                <div class="submit_time">
                                    <span class="passed_approval"></span>
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                <span class="dblock approval_people_opinion">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span class="green-font"> {{'APPROVAL_AGREE' | i18n}}</span>
                                    <span>{{'APPROVAL_THE_APPROVAL' | i18n}}</span>
                                    {{if approval.opinion}}
                                <div class="approval_people_wrap">
                                    <div class="approval_people_toparrow">
                                        <div class="approval_people_toparrowinner"></div>
                                    </div>
                                    <div class="approval_people_content">{{approval.opinion}}</div>
                                </div>
                                {{/if}}
                                    </span>
                                </div>
                                </li>
                            {{else if approval.result == 1 && approval.operateType==7}}
                                <div class="submit_time">
                                    <span class="passed_approval"></span>
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                <span class="dblock approval_people_opinion">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span class="green-font"> {{'APPROVAL_OPERATE_PASS' | i18n}}</span>
                                    {{if approval.opinion}}
                                <div class="approval_people_wrap">
                                    <div class="approval_people_toparrow">
                                        <div class="approval_people_toparrowinner"></div>
                                    </div>
                                    <div class="approval_people_content">{{approval.opinion}}</div>
                                </div>
                                {{/if}}
                                    </span>
                                </div>
                                </li>
                            {{else if approval.result == 3 && approval.operateType==3}}
                                <div class="submit_time">
                                    <span class="passed_approval"></span>
                                    <span class="passed_time">
                                    <span class="passed_person">{{'SUBMIT' | i18n}}</span>
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span> {{'APPROVAL_OPERATE_RESUBMIT' | i18n}}</span>
                                </div>
                                </li>
                            {{else if approval.operateType==5}}
                                <div class="submit_time">
                                    <span class="reject_approval"></span>
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span class="red-font"> {{'APPROVAL_OPERATE_CANCEL' | i18n}}</span>
                                </div>
                                </li>
                            {{else if approval.result == 0}}
                                <div class="submit_time">
                                    <span class="reject_approval"></span>
                                    <span class="passed_time">
                                    {{if approval.activityName}}
                                    <span class="passed_person">{{approval.activityName}}</span>
                                    {{/if}}
                                    {{approval.approvalTime}}</span>
                                </div>
                                <div class="submit_peopel_img">
                                    <a target="_blank" href="/final/user.action?uid={{users[approval.approvalUserId].id}}">
                                        <img src="{{users[approval.approvalUserId].icon}}"/>
                                    </a>
                                </div>
                                <div class="submit_peopel">
                                <span class="dblock approval_people_opinion">
                                    <a href="/final/user.action?uid={{users[approval.approvalUserId].id}}" target="_blank" ucard="uid={{users[approval.approvalUserId].id}}">{{users[approval.approvalUserId].name}}</a>
                                    <span class="red-font"> {{'APPROVAL_REJECT' | i18n}}</span>
                                    {{if approval.opinion}}
                                <div class="approval_people_wrap">
                                    <div class="approval_people_toparrow">
                                        <div class="approval_people_toparrowinner"></div>
                                    </div>
                                    <div class="approval_people_content">{{approval.opinion}}</div>
                                </div>
                                {{/if}}
                                    </span>
                                </div>
                                </li>
                            {{/if}}
                        {{/each}}
                        <!--{{each processList.flowSteps as flowStep i}}
                            {{if processList.flowSteps.length == i + 1}}
                                <li class="last_li">
                            {{else}}
                                <li>
                            {{/if}}
                                <div class="submit_time">
                                    <span class="without_approval"></span>
                                    <span class="without_people">{{flowStep.name}}</span>
                                    <span class="without_people">{{'APPROVAL_WITHOUT_BEGIN' | i18n}}</span>
                                </div>
                            </li>
                        {{/each}}-->
                    </ul>
                </div>
            </div>
        </div>
        </div>
        <!-- 审批申请选择下一步审批人等-->
        {{if apply.status == 1 && apply.currentApproval == currentUserId}}
            <div class="approval_comments">
                <form id="approvalWithCommentForm" class="comment_form_approval" action="/json/oa_approval/deal-approval.action" method="post">
                    <input type="hidden" class="approvalResult" name="approvalResult"/>
                    <input type="hidden" value="{{apply.repeatApprovalFlg}}" name="repeatApprovalFlg"/>
                    <div class="approval_detail clear">
                        <div class="approval_detail">
                            <div _id="approvalResultRadio" class="ui-radio-buttonset">
                                <input id="approvalResultRadio1" type="radio" name="approvalResult_radio" value="1" /><label for="approvalResultRadio1">{{'APPROVAL_AGREE' | i18n}}</label>
                                <input id="approvalResultRadio2" type="radio" name="approvalResult_radio" value="0" /><label for="approvalResultRadio2">{{'APPROVAL_REJECT' | i18n}}</label>
                            </div>
                            <span class="span_watermark">
                                <textarea id="commentContent" placeholder="{{'APPROVAL_INPUT_OPINION' | i18n}}" class="comment_editor approval_textarea" name="commentContent" autoComplete="off"></textarea>
                            </span>
                        </div>
                        {{if apply.hasApprovers == 1 || apply.allowSelectApprover == 1 || apply.isParallelGateway == 1}}
                        <div class="sp_people approval_people nc_agree_show clear hidden">
                            <label>{{'APPROVAL_FORWARD' | i18n}}</label>
                            <div class="name_select{{if apply.isParallelGateway == 1}} sign_name_select{{/if}}">
                                {{if apply.isParallelGateway == 0}}
                                <input type="hidden" class="approvalUser_hidden" name="approval.approvalUserId"
                                   {{if apply.approversLength== 1 && apply.allowSelectApprover== 0}}
                                   value="{{apply.approvers[0].id}}"
                                   {{else if apply.defaultSelectApprover == 1}}
                                   value="{{apply.approvers[0].id}}"
                                   {{/if}}/>
                                <a id="approverSelectNextA" href="javascript:void(0)" title="{{'APPROVAL_SELECT_NEXT' | i18n}}" class="approval_user{{if apply.defaultUserName}} sign_approval_user{{/if}} nc_show_approval_user">
                                {{if apply.approversLength == 1 && apply.allowSelectApprover == 0}}
                                {{apply.approvers[0].name}}
                                {{else if apply.defaultSelectApprover == 1}}
                                {{apply.approvers[0].name}}
                                {{else}}
                                {{'APPROVAL_SELECT_PEOPLE' | i18n}}
                                {{/if}}
                                </a>

                                <div class="user_select select_depart_list nc_show_approval_user" style="display: none">
                                    {{if apply.hasApprovers == 1}}
                                    <div class="group_select_top">
                                        <h5>{{'APPROVAL_SELECT_FROM_QUEUE' | i18n}}：</h5>
                                    </div>
                                    <ul class="group_member selectColleague_ul">
                                    {{if !apply.defaultUserName}}
                                        {{each apply.approvers as approver i}}
                                        <li class="nc_selectColleague_li" uid="{{approver.id}}" uname="{{approver.name}}">
                                            <a href="javascript:;">
                                                <img class="userpic" ucard="uid={{approver.id}}" src="{{approver.icon}}"/>
                                            </a>
                                            <p><span>{{approver.name}}</span></p>
                                        </li>
                                        {{/each}}
                                        {{/if}}
                                    </ul>
                                    {{/if}}
                                    {{if apply.allowSelectApprover == 1}}
                                    <div class="user_select_other">
                                        <h5>{{if apply.hasApprovers == 1}}{{'APPROVAL_OR' | i18n}}{{/if}}{{'APPROVAL_INPUT_TO_SELECT' | i18n}}：</h5>
                                        <input id="approvalUserSelect" type="text" class="text" style="width: 100px;"/>
                                        <a id="showApprovalUserA" href="javascript:void(0);">{{'APPROVAL_CONFIRM' | i18n}}</a>
                                    </div>
                                    {{/if}}
                                </div>
                                {{else}}
                                <label>{{'APPROVAL_MULTIPEOPLE_COUNTERSIGN' | i18n}}</label>
                                {{/if}}
                            </div>
                            <label>{{'APPROVAL_CONTINUE' | i18n}}</label>
                        </div>
                        {{/if}}
                        <input name="commentSystemId" type="hidden" value="602"/>
                        <input name="commentSystemItemId" type="hidden" value="{{apply.applyId}}"/>
                        <input name="isParallelGateway" type="hidden" value="{{apply.isParallelGateway}}"/>
                        <input name="isCounterSigner" class="isCounterSigner" type="hidden" value="{{apply.signApprovals.length}}"/>
                        <input name="taskid" type="hidden" value="{{apply.taskid}}"/>
                        <div class="approval_people">
                            <a result="1" href="javascript:void(0)" class="green_button agree_btn nc_agree_show" style="display: none">{{'APPROVAL_SUBMIT_3' | i18n}}</a>
                            <a result="0" href="javascript:void(0)" class="green_button reject_btn nc_reject_show" style="display: none;">{{'APPROVAL_SUBMIT_3' | i18n}}</a>
                            <a result="-1" href="javascript:void(0)" class="green_button nc_comment_btn nc_comment_show" style="display: none;">{{'APPROVAL_SUBMIT_3' | i18n}}</a>
                        </div>
                    </div>
                </form>
            </div>
        {{/if}}
    </div>
    <div class="task_detail_content approval_detail_content">
        <div class="task_tip_content">
            <ul class="detail_field approval_detail_field">
                <!-- 遍历item-->
                {{each items as item i}}
                    <li class="clear">
                        <label>{{item.itemName}}：</label>
                        {{if item.itemValue}}
                            <span>{{#item.itemValue}}</span>
                        {{else}}
                            <span class="task_list_noneinfo">{{'APPROVAL_WITHOUT_INPUT' | i18n}}</span>
                        {{/if}}
                    </li>
                {{/each}}
                <!-- 相关业务-->
                {{if apply.businessFlg == 1}}
                    <li class="clear">
                        <label>{{'BUSINESS' | i18n}}：</label>
                        {{if apply.belongId != '' && apply.entityName != ''}}
                            <span class="task_group">
                                {{if apply.belongId == 1}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class account" title="{{'APPROVAL_THIS_IS_A_1' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/account.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 2}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class contact" title="{{'APPROVAL_THIS_IS_A_2' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/contact.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 3}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class opp" title="{{'APPROVAL_THIS_IS_A_3' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/opportunity.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 11}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class leads" title="{{'APPROVAL_THIS_IS_A_4' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/lead.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 6}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class campaign" title="{{'APPROVAL_THIS_IS_A_5' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/campaign.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 9}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class partner" title="{{'APPROVAL_THIS_IS_A_10' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/partner.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 64}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class expenseAccounts" title="{{'APPROVAL_THIS_IS_A_6' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/expenseaccount.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 66}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class agent" title="{{'APPROVAL_THIS_IS_A_7' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/agent.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 67}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class terminal" title="{{'APPROVAL_THIS_IS_A_8' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/terminal.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{else if apply.belongId == 15}}
                                    <p class="feed-group-name">
                                        <span class="feed-group-class contract" title="{{'APPROVAL_THIS_IS_A_11' | i18n}}"></span>
                                        <a target="_blank" title="{{apply.entityName}}" href="/final/contract.action?id={{apply.objectId}}">{{apply.entityName}}</a>
                                    </p>
                                {{/if}}
                            </span>
                        {{else}}
                            <span class="task_list_noneinfo">{{'APPROVAL_WITHOUT_SET' | i18n}}</span>
                        {{/if}}
                    </li>
                {{/if}}
            </ul>
            <!-- 相关附件-->
            {{if apply.uploadFlg == 1}}
                <div class="detail_field approval_detail_field">
                    <div class="field clear">
                        <div class="field_name">{{'APPROVAL_FILE' | i18n}}：</div>
                        <div id="fileFieldContentDiv" class="field_content">
                            {{if files.length > 0}}
                                {{each files as commonFile i}}
                                    {{if i < 2}}
                                        <div class="document_item">
                                            <span class="name file_class_word">
                                                <a href="/common-file-download.action?commonFileId={{commonFile.id}}&tfcode={{commonFile.tfcode}}"
                                                   target="_blank">{{commonFile.name}}</a>
                                            </span>
                                        </div>
                                    {{else}}
                                        <div style="display: none" class="document_item">
                                            <span class="name file_class_word">
                                                <a href="/common-file-download.action?commonFileId={{commonFile.id}}&tfcode={{commonFile.tfcode}}"
                                                   target="_blank">{{commonFile.name}}</a>
                                            </span>
                                        </div>
                                    {{/if}}
                                {{/each}}
                                {{if files.length > 2}}
                                    <a id="showAllFile" href="javascript:void(0);">{{'APPROVAL_VIEW_ALL' | i18n}}{{files.length}}{{'APPROVAL_COUNT' | i18n}}&gt;&gt;</a>
                                {{/if}}
                            {{else}}
                                <span class="task_list_noneinfo">{{'APPROVAL_WITHOUT_UPLOAD' | i18n}}</span>
                            {{/if}}
                        </div>
                    </div>
                </div>
            {{/if}}
            <div class="detail_field">
                <div class="field clear">
                    <div class="field_name">{{'APPROVAL_COPYER' | i18n}}：</div>
                    <div class="field_content">
                        {{if copys.length > 0}}
                            <ul id="report_copy_image" class="people_list task_people_list">
                                {{each copys as copyer i}}
                                    <li title="{{users[copyer.id].name}}">
                                        <img src="{{users[copyer.id].icon}}"/>
                                    </li>
                                {{/each}}
                            </ul>
                        {{else}}
                            <span class="task_list_noneinfo">{{'APPROVAL_WITHOUT_SET' | i18n}}</span>
                        {{/if}}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 讨论和审批历史-->
    <div id="approvalDetailBottomDiv" class="task_detail_bottom approval_detail_bottom">
        <ul class="bottom_tabs">
            <li class="jstab hover"><a title="{{'APPROVAL_COMMENT' | i18n}}" href="javascript:;">{{'APPROVAL_COMMENT' | i18n}}</a><span class="arrow"></span></li>
            <!--<li>•</li>
            <li class="jstab"><a title="{{'APPROVAL_HISTORY' | i18n}}" href="javascript:;">{{'APPROVAL_HISTORY' | i18n}}</a><span class="arrow"></span></li>-->
        </ul>
        <div class="bottom_tabs_content clear">
            <!--讨论 -->
            <div class="rk-comment-container task_comment">
                <div style="display:block;" class="show_comment js-comments clear"></div>
            </div>
            <!--讨论 end -->
            <!--审批历史 -->
            <!--<div class="task_comment" style="display:none;">
                <div style="display:block;" class="show_comment clear"></div>
            </div> -->
            <!--审批历史 end-->
        </div>
    </div>
</div>